package com.kgc.sbt.mapper;

import com.kgc.sbt.domain.NoticeLimit;
import com.kgc.sbt.domain.NoticeLimitExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface NoticeLimitMapper {
    long countByExample(NoticeLimitExample example);

    int deleteByExample(NoticeLimitExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(NoticeLimit record);

    int insertSelective(NoticeLimit record);

    List<NoticeLimit> selectByExample(NoticeLimitExample example);

    NoticeLimit selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") NoticeLimit record, @Param("example") NoticeLimitExample example);

    int updateByExample(@Param("record") NoticeLimit record, @Param("example") NoticeLimitExample example);

    int updateByPrimaryKeySelective(NoticeLimit record);

    int updateByPrimaryKey(NoticeLimit record);

    /**
     * Created on 2021/6/23
     * Author: GongMingJie
     * @param userId
     * @param buyLimitId
     * @return
     * Description: 判断是否存在
     */
    NoticeLimit selectByUserIdAndBuyLimitId(@Param("userId") Integer userId,@Param("buyLimitId") Integer buyLimitId);


    /**
     * Created on 2021/6/23
     * Author: GongMingJie
     * @param
     * @return
     * Description: 根据活动Id获取电话集合
     */
    List<String> selectByBuyLimitId(Integer buyLimitId);
}